Integrand size = 19, antiderivative size = 81 \[ \int \cot ^5(c+d x) (a+b \sin (c+d x)) \, dx=\frac {2 b \csc (c+d x)}{d}+\frac {a \csc ^2(c+d x)}{d}-\frac {b \csc ^3(c+d x)}{3 d}-\frac {a \csc ^4(c+d x)}{4 d}+\frac {a \log (\sin (c+d x))}{d}+\frac {b \sin (c+d x)}{d} \]
2*b*csc(d*x+c)/d+a*csc(d*x+c)^2/d-1/3*b*csc(d*x+c)^3/d-1/4*a*csc(d*x+c)^4/ d+a*ln(sin(d*x+c))/d+b*sin(d*x+c)/d
Time = 0.02 (sec) , antiderivative size = 96, normalized size of antiderivative = 1.19 \[ \int \cot ^5(c+d x) (a+b \sin (c+d x)) \, dx=\frac {a \cot ^2(c+d x)}{2 d}-\frac {a \cot ^4(c+d x)}{4 d}+\frac {2 b \csc (c+d x)}{d}-\frac {b \csc ^3(c+d x)}{3 d}+\frac {a \log (\cos (c+d x))}{d}+\frac {a \log (\tan (c+d x))}{d}+\frac {b \sin (c+d x)}{d} \]
(a*Cot[c + d*x]^2)/(2*d) - (a*Cot[c + d*x]^4)/(4*d) + (2*b*Csc[c + d*x])/d - (b*Csc[c + d*x]^3)/(3*d) + (a*Log[Cos[c + d*x]])/d + (a*Log[Tan[c + d*x ]])/d + (b*Sin[c + d*x])/d
Time = 0.23 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.85, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.211, Rules used = {3042, 3200, 522, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cot ^5(c+d x) (a+b \sin (c+d x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {a+b \sin (c+d x)}{\tan (c+d x)^5}dx\) |
\(\Big \downarrow \) 3200 |
\(\displaystyle \frac {\int \frac {\csc ^5(c+d x) (a+b \sin (c+d x)) \left (b^2-b^2 \sin ^2(c+d x)\right )^2}{b^5}d(b \sin (c+d x))}{d}\) |
\(\Big \downarrow \) 522 |
\(\displaystyle \frac {\int \left (\frac {a \csc ^5(c+d x)}{b}+\csc ^4(c+d x)-\frac {2 a \csc ^3(c+d x)}{b}-2 \csc ^2(c+d x)+\frac {a \csc (c+d x)}{b}+1\right )d(b \sin (c+d x))}{d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {a \log (b \sin (c+d x))-\frac {1}{4} a \csc ^4(c+d x)+a \csc ^2(c+d x)+b \sin (c+d x)-\frac {1}{3} b \csc ^3(c+d x)+2 b \csc (c+d x)}{d}\) |
(2*b*Csc[c + d*x] + a*Csc[c + d*x]^2 - (b*Csc[c + d*x]^3)/3 - (a*Csc[c + d *x]^4)/4 + a*Log[b*Sin[c + d*x]] + b*Sin[c + d*x])/d
3.13.7.3.1 Defintions of rubi rules used
Int[((e_.)*(x_))^(m_.)*((c_) + (d_.)*(x_))^(n_.)*((a_) + (b_.)*(x_)^2)^(p_. ), x_Symbol] :> Int[ExpandIntegrand[(e*x)^m*(c + d*x)^n*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m, n}, x] && IGtQ[p, 0]
Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*tan[(e_.) + (f_.)*(x_)]^(p _.), x_Symbol] :> Simp[1/f Subst[Int[(x^p*(a + x)^m)/(b^2 - x^2)^((p + 1) /2), x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, m}, x] && NeQ[a^2 - b ^2, 0] && IntegerQ[(p + 1)/2]
Time = 0.50 (sec) , antiderivative size = 101, normalized size of antiderivative = 1.25
method | result | size |
derivativedivides | \(\frac {a \left (-\frac {\left (\cot ^{4}\left (d x +c \right )\right )}{4}+\frac {\left (\cot ^{2}\left (d x +c \right )\right )}{2}+\ln \left (\sin \left (d x +c \right )\right )\right )+b \left (-\frac {\cos ^{6}\left (d x +c \right )}{3 \sin \left (d x +c \right )^{3}}+\frac {\cos ^{6}\left (d x +c \right )}{\sin \left (d x +c \right )}+\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )\right )}{d}\) | \(101\) |
default | \(\frac {a \left (-\frac {\left (\cot ^{4}\left (d x +c \right )\right )}{4}+\frac {\left (\cot ^{2}\left (d x +c \right )\right )}{2}+\ln \left (\sin \left (d x +c \right )\right )\right )+b \left (-\frac {\cos ^{6}\left (d x +c \right )}{3 \sin \left (d x +c \right )^{3}}+\frac {\cos ^{6}\left (d x +c \right )}{\sin \left (d x +c \right )}+\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )\right )}{d}\) | \(101\) |
parallelrisch | \(\frac {-1024 a \ln \left (\sec ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1024 a \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )-13 \left (a \sec \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\cos \left (2 d x +2 c \right )+\frac {19 \cos \left (4 d x +4 c \right )}{52}-\frac {7}{52}\right ) \csc \left (\frac {d x}{2}+\frac {c}{2}\right )+\frac {192 b \left (\cos \left (2 d x +2 c \right )-\frac {\cos \left (4 d x +4 c \right )}{12}-\frac {25}{36}\right )}{13}\right ) \left (\csc ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \left (\sec ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{1024 d}\) | \(127\) |
risch | \(-i a x -\frac {i b \,{\mathrm e}^{i \left (d x +c \right )}}{2 d}+\frac {i b \,{\mathrm e}^{-i \left (d x +c \right )}}{2 d}-\frac {2 i a c}{d}+\frac {4 i \left (3 i a \,{\mathrm e}^{6 i \left (d x +c \right )}+3 b \,{\mathrm e}^{7 i \left (d x +c \right )}-3 i a \,{\mathrm e}^{4 i \left (d x +c \right )}-7 b \,{\mathrm e}^{5 i \left (d x +c \right )}+3 i a \,{\mathrm e}^{2 i \left (d x +c \right )}+7 b \,{\mathrm e}^{3 i \left (d x +c \right )}-3 b \,{\mathrm e}^{i \left (d x +c \right )}\right )}{3 d \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{4}}+\frac {a \ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{d}\) | \(171\) |
norman | \(\frac {-\frac {a}{64 d}+\frac {11 a \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64 d}+\frac {11 a \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64 d}-\frac {a \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64 d}-\frac {b \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{24 d}+\frac {5 b \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{6 d}+\frac {15 b \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 d}+\frac {5 b \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{6 d}-\frac {b \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{24 d}}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4} \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}+\frac {a \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}-\frac {a \ln \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}\) | \(205\) |
1/d*(a*(-1/4*cot(d*x+c)^4+1/2*cot(d*x+c)^2+ln(sin(d*x+c)))+b*(-1/3/sin(d*x +c)^3*cos(d*x+c)^6+1/sin(d*x+c)*cos(d*x+c)^6+(8/3+cos(d*x+c)^4+4/3*cos(d*x +c)^2)*sin(d*x+c)))
Time = 0.42 (sec) , antiderivative size = 110, normalized size of antiderivative = 1.36 \[ \int \cot ^5(c+d x) (a+b \sin (c+d x)) \, dx=-\frac {12 \, a \cos \left (d x + c\right )^{2} - 12 \, {\left (a \cos \left (d x + c\right )^{4} - 2 \, a \cos \left (d x + c\right )^{2} + a\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) - 4 \, {\left (3 \, b \cos \left (d x + c\right )^{4} - 12 \, b \cos \left (d x + c\right )^{2} + 8 \, b\right )} \sin \left (d x + c\right ) - 9 \, a}{12 \, {\left (d \cos \left (d x + c\right )^{4} - 2 \, d \cos \left (d x + c\right )^{2} + d\right )}} \]
-1/12*(12*a*cos(d*x + c)^2 - 12*(a*cos(d*x + c)^4 - 2*a*cos(d*x + c)^2 + a )*log(1/2*sin(d*x + c)) - 4*(3*b*cos(d*x + c)^4 - 12*b*cos(d*x + c)^2 + 8* b)*sin(d*x + c) - 9*a)/(d*cos(d*x + c)^4 - 2*d*cos(d*x + c)^2 + d)
Timed out. \[ \int \cot ^5(c+d x) (a+b \sin (c+d x)) \, dx=\text {Timed out} \]
Time = 0.21 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.85 \[ \int \cot ^5(c+d x) (a+b \sin (c+d x)) \, dx=\frac {12 \, a \log \left (\sin \left (d x + c\right )\right ) + 12 \, b \sin \left (d x + c\right ) + \frac {24 \, b \sin \left (d x + c\right )^{3} + 12 \, a \sin \left (d x + c\right )^{2} - 4 \, b \sin \left (d x + c\right ) - 3 \, a}{\sin \left (d x + c\right )^{4}}}{12 \, d} \]
1/12*(12*a*log(sin(d*x + c)) + 12*b*sin(d*x + c) + (24*b*sin(d*x + c)^3 + 12*a*sin(d*x + c)^2 - 4*b*sin(d*x + c) - 3*a)/sin(d*x + c)^4)/d
Time = 0.38 (sec) , antiderivative size = 82, normalized size of antiderivative = 1.01 \[ \int \cot ^5(c+d x) (a+b \sin (c+d x)) \, dx=\frac {12 \, a \log \left ({\left | \sin \left (d x + c\right ) \right |}\right ) + 12 \, b \sin \left (d x + c\right ) - \frac {25 \, a \sin \left (d x + c\right )^{4} - 24 \, b \sin \left (d x + c\right )^{3} - 12 \, a \sin \left (d x + c\right )^{2} + 4 \, b \sin \left (d x + c\right ) + 3 \, a}{\sin \left (d x + c\right )^{4}}}{12 \, d} \]
1/12*(12*a*log(abs(sin(d*x + c))) + 12*b*sin(d*x + c) - (25*a*sin(d*x + c) ^4 - 24*b*sin(d*x + c)^3 - 12*a*sin(d*x + c)^2 + 4*b*sin(d*x + c) + 3*a)/s in(d*x + c)^4)/d
Time = 11.76 (sec) , antiderivative size = 207, normalized size of antiderivative = 2.56 \[ \int \cot ^5(c+d x) (a+b \sin (c+d x)) \, dx=\frac {7\,b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{8\,d}+\frac {46\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+3\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+\frac {40\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{3}+\frac {11\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{4}-\frac {2\,b\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{3}-\frac {a}{4}}{d\,\left (16\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+16\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\right )}-\frac {a\,\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{d}+\frac {3\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{16\,d}-\frac {a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{64\,d}-\frac {b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{24\,d}+\frac {a\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d} \]
(7*b*tan(c/2 + (d*x)/2))/(8*d) + ((11*a*tan(c/2 + (d*x)/2)^2)/4 - (2*b*tan (c/2 + (d*x)/2))/3 - a/4 + 3*a*tan(c/2 + (d*x)/2)^4 + (40*b*tan(c/2 + (d*x )/2)^3)/3 + 46*b*tan(c/2 + (d*x)/2)^5)/(d*(16*tan(c/2 + (d*x)/2)^4 + 16*ta n(c/2 + (d*x)/2)^6)) - (a*log(tan(c/2 + (d*x)/2)^2 + 1))/d + (3*a*tan(c/2 + (d*x)/2)^2)/(16*d) - (a*tan(c/2 + (d*x)/2)^4)/(64*d) - (b*tan(c/2 + (d*x )/2)^3)/(24*d) + (a*log(tan(c/2 + (d*x)/2)))/d